﻿using BaiTu.CachingServices.CacheEvents;
using BaiTu.Framework.Core.Interfaces;
using BaiTu.IEventServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiTu.CachingServices.CacheEventHandlers
{
    public class CacheRemovedEventHandler : IProcessReceivedEventProcessorHandler<CacheRemovedEvent>
    {
        public void Process(CacheRemovedEvent evt)
        {
            CacheCore core = CacheManager.Instance().GetCacheCore(evt.Location);
            core.Remove(evt.Key);
        }
    }
}
